package com.liang.cloud.Handler;

import com.liang.cloud.Emun.ResultEnum;
import com.liang.cloud.Util.ResultVoUtil;
import com.liang.cloud.Vo.ResultVo;

/**
 * @author: 余亮亮
 * @description:全局处理Fallback异常
 * @create: 2020-04-03 13:47:50
 **/
public class SellFackHandler {

    public static ResultVo CallTimeNoArg(Throwable throwable){
        return new ResultVo(ResultEnum.CALL_TIME.getCode(),ResultEnum.CALL_TIME.getMsg(),null);
    }
    public static ResultVo CallTimeOneArg(String one,Throwable throwable){
        return new ResultVo(ResultEnum.CALL_TIME.getCode(),ResultEnum.CALL_TIME.getMsg(),null);
    }

    public static ResultVo CallTimeTwoArg(String one,String tow,Throwable throwable){
        return new ResultVo(ResultEnum.CALL_TIME.getCode(),ResultEnum.CALL_TIME.getMsg(),null);
    }
}
